Release 10.1A: OpenEdge Data Management:
SQL Development
Using the SQLSCHEMA utility
The
SQLSCHEMAutility is a command-line utility that writes SQL database schema components to an output file selectively. You can capture table definitions including table constraints, views, stored procedures including related privileges, and triggers. At the command line you specify which components to dump.Use the following syntax for the
SQLSCHEMAutility:
The
SQLSCHEMAutility cannot write definitions for Progress 4GL tables. Table definitions include the database area name for the table, derived from a scan of the area and objects. WhenSQLSCHEMAwrites a table definition, it does not automatically write associated triggers, synonyms, or privileges. These must be explicitly specified on the command line. Capturing database schema requires privileges to access the requested components.Example 5–33 directs the
SQLSCHEMAutility to write table definitions and trigger information. The output goes to the screen since no output_file_name is specified. Since theuser_nameandpasswordare not specified,SQLSCHEMAwill prompt the user for these values.
Example 5–34 directs the
SQLSCHEMAutility to write table definitions to an output file namedsalesdbschema.dfsql.
Note: Each output file created by the
SQLSCHEMAutility records character set information about the contents of the file. When you useSQLSCHEMAto dump schema information from a database, the schema is written in Unicode UTF-8.For more information on SQL utilities and database administration, see OpenEdge Data Management: Database Administration .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |